﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_ChiTietSanPham : System.Web.UI.Page
{
    private DataSet objLoaiSPDS;
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadControl();
    }
    private void LoadControl()
    {
        string loaisp = Request.QueryString["loaisp"];
        LoaiSanPhamBUS objLoaiSP = new LoaiSanPhamBUS(TGDDConfiguration.DbConnectionString);
        objLoaiSPDS = objLoaiSP.SelectTenLoaiSanPham(int.Parse(loaisp));
        DataRow row = objLoaiSPDS.Tables[0].Rows[0];
        string tenloaisp = row["TenLoaiSanPham"].ToString();
        Control c = Page.LoadControl(Request.ApplicationPath +
                       "/admin/MyUserControls/TH_ChiTietSanPham.ascx");
        adminPlaceHolder.Controls.Add(c);
    }
}
